package com.regex.web;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//@SpringBootApplication
@EnableTransactionManagement
@ComponentScan
@ServletComponentScan
@MapperScan(basePackages= {"com.regex.web.dao"})
@SpringBootApplication(proxyBeanMethods = false)
public class AdminApplication {

    private final static Logger logger = LoggerFactory.getLogger(AdminApplication.class);
    
    public AdminApplication() {
    	logger.error("application is starting");
    }

    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
        logger.error("AdminApplication is success!");
    }
}
